com.supermap.ar.areffect.gltfModel
Class BufferViews
- java.lang.Object
-
- com.supermap.ar.areffect.gltfModel.BufferViews
-
public class BufferViews extends java.lang.ObjectTile set of Gltf bufferview represents tiles (or blocks) of one buffer. bufferview is defined by offset and length.
-
-
Constructor Summary
Constructors Constructor and Description BufferViews()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.IntegergetBuffer()Gets gltf data buffer zonejava.lang.IntegergetByteLength()Gets the length of bytes to be readjava.lang.IntegergetByteOffset()Gets the byte offsetjava.lang.IntegergetByteStride()Gets the step size of bytesjava.lang.StringgetName()Gets the namejava.lang.IntegergetTarget()Gets Target target can be a constant indicating data is used for the vertex property (34962 means ARRAY_BUFFER).voidsetBuffer(java.lang.Integer buffer)Sets gltf data buffer zonevoidsetByteLength(java.lang.Integer byteLength)Sets the length of bytes to be readvoidsetByteOffset(java.lang.Integer byteOffset)Sets the byte offsetvoidsetByteStride(java.lang.Integer byteStride)Sets the step size of bytesvoidsetName(java.lang.String name)Sets a namevoidsetTarget(java.lang.Integer target)Sets Target
-
-
-
Method Detail
-
setBuffer
public void setBuffer(java.lang.Integer buffer)
Sets gltf data buffer zone- Parameters:
buffer-
-
getBuffer
public java.lang.Integer getBuffer()
Gets gltf data buffer zone- Returns:
-
setByteOffset
public void setByteOffset(java.lang.Integer byteOffset)
Sets the byte offset- Parameters:
byteOffset-
-
getByteOffset
public java.lang.Integer getByteOffset()
Gets the byte offset- Returns:
-
setByteLength
public void setByteLength(java.lang.Integer byteLength)
Sets the length of bytes to be read- Parameters:
byteLength-
-
getByteLength
public java.lang.Integer getByteLength()
Gets the length of bytes to be read- Returns:
-
setByteStride
public void setByteStride(java.lang.Integer byteStride)
Sets the step size of bytes- Parameters:
byteStride-
-
getByteStride
public java.lang.Integer getByteStride()
Gets the step size of bytes- Returns:
-
getTarget
public java.lang.Integer getTarget()
Gets Target target can be a constant indicating data is used for the vertex property (34962 means ARRAY_BUFFER). Or the data is used for the vertex index (34963 means ELEMENT_ARRAY_BUFFER).- Returns:
-
setTarget
public void setTarget(java.lang.Integer target)
Sets Target- Parameters:
target-
-
setName
public void setName(java.lang.String name)
Sets a name- Parameters:
name-
-
getName
public java.lang.String getName()
Gets the name- Returns:
-
-